#pragma once
#include <nice2d/actions/finitetimeaction.h>
#include <nice2d/scene.h>

class FightAnimationAction : public FiniteTimeAction
{
    DECLARE_OBJECT(FightAnimationAction)
public:
    FightAnimationAction() = delete;
    FightAnimationAction(std::shared_ptr<Scene> scene,const sf::Vector2f &position,float duration = 3.0f);
    ~FightAnimationAction();
public:
    void setAnimation(std::shared_ptr<Animation> animation);
private:
    std::unique_ptr<class FightAnimationActionData> data;
};
